home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / dskut / scav31.zip / SCAVENGE.DOC < prev   
Text File  |  1988-10-06  |  3KB  |  79 lines

  1. title scavenge Copyright (c) T. Jennings 1983
  2.  
  3. *****************************************
  4. *                    *
  5. *        SCAVENGE        *
  6. *                    *
  7. *    Mark bad blocks on MSDOS     *
  8. *    as allocated in the FAT.    *
  9. *                    *
  10. *    T. Jennings 5 June 82        *
  11. *      created 15 Sept. 82        *
  12. *    Modified 14 December 1984    *
  13. *        by David Gwillim        *
  14. *                    *
  15. *                    *
  16. *****************************************
  17.  
  18. ***********************************************************************
  19.  
  20. SCAV2XX was modified by David Gwillim to dynamically allocate
  21. memory to the variables BLKBUF and FATBUF when the program
  22. is started - this drastically reduced the size of the .COM file
  23. from 17K on disk to just over 1K, while still allowing the
  24. checking of disks with block sizes up to 16K Bytes. Also
  25. changed was the access to disk to determine its statistics
  26. (Number of Blocks, Blocksize etc) this is now done AFTER the
  27. pause command when the program is first started, permitting
  28. the program to be run with a single floppy drive. Code was
  29. also added to display the block size of the disk in bytes
  30. as part of the statistics, plus some alert tones for various
  31. parts of the program.
  32.  
  33. I also added a more graceful exit than via ^C or Cntrl-Break
  34. as this would often leave you on the wrong drive if you aborted
  35. mid way through the block check and also would not give you the
  36. chance to update the FAT with any bad blocks found so far.
  37.  
  38. A logical improvement to the program would be to add to the
  39. code so the program could report the names of the files which
  40. contain any bad blocks found, so the user could handle those
  41. files, or at least be aware that the data in them was corrupted.
  42.  
  43. This is a very useful program and can give you great peace of
  44. mind if you own a hard disk and want to be sure that all is OK.
  45. If anyone takes a crack at doing the improvements I mentioned
  46. or finds and fixes any bugs, I would be delighted to hear of
  47. them.
  48.  
  49.         David Gwillim
  50.         1414 N. Catalina Street
  51.         Los Angeles CA 90027
  52.  
  53. ************************************************************************
  54.  
  55. Reads all sectors in logical MSDOS blocks and marks the file allocation
  56. tables such that the blocks are permanently allocated where CHKDSK will
  57. not deallocate them.
  58.  
  59.  
  60. This version works on any 2.xx MSDOS or PCDOS, on any media type, fixed
  61. or removable.
  62. | [At least through my PC-DOS v3.1 and my Seagate ST251]
  63.  
  64. One (major) limitation: it will not map out blocks that are already allocated
  65. to a file;  it will say "block used", but won't tell you which file it is in.
  66.  
  67. If SCAVENGE finds any bad blocks, it will ask you whether or not you want the
  68. disk updated.  You can safely run it just to see if the disk is OK.
  69.  
  70. v3.01
  71. - Slightly tweaked
  72. - Removed some small system functions, placing them inline.
  73. - Separated extensive documentation (the above) from the .ASM source,
  74.   placing it in a separate SCAVENGE.DOC file.
  75. - No functional changes.
  76. David Kirschbaum
  77. Toad Hall
  78. kirsch@braggvax.ARPA
  79.